package com.communal.dao;

import com.communal.model.User;

/**
 * Defines DAO methods for user <br>
 * @author Created by andrey.kuznetsov <br>
 * @author Last modified by $Author$ <br>
 * @author Last modified on $Date$ at revision $Revision$ <br>
 */
public interface IUserDao extends IBaseDao{
	
	/**
	 * Returns user by his login and password <br>
	 * @param p_login - {@link String} <br>
	 * @return {@link User}
	 */
	public User getUserByLogin(String p_login);
	
	/**
	 * Returns user by his login and password <br>
	 * @param p_login - {@link String} <br>
	 * @param p_password - {@link String} <br>
	 * @return {@link User}
	 */
	public User getUserByLoginAndPassword(String p_login, String p_password);
}
